package com.fr.base.core;

import java.awt.geom.Dimension2D;
import java.io.Serializable;

public class DoubleDimension2D extends Dimension2D
  implements Serializable
{
  private double width;
  private double height;

  public DoubleDimension2D(double paramDouble1, double paramDouble2)
  {
    setSize(paramDouble1, paramDouble2);
  }

  public double getWidth()
  {
    return this.width;
  }

  public double getHeight()
  {
    return this.height;
  }

  public void setSize(double paramDouble1, double paramDouble2)
  {
    this.width = paramDouble1;
    this.height = paramDouble2;
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof DoubleDimension2D))
      break label38;
    DoubleDimension2D localDoubleDimension2D = (DoubleDimension2D)paramObject;
    label38: return ((localDoubleDimension2D.getWidth() == getWidth()) && (localDoubleDimension2D.getHeight() == getHeight()));
  }
}